<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>重设URL重写器的值（Reset URL rewriter values）</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.output-add-rewrite-var.html">output_add_rewrite_var</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.info.html">PHP 选项/信息</a></div>
 <div class="up"><a href="ref.outcontrol.html">Output Control 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.output-reset-rewrite-vars" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">output_reset_rewrite_vars</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5)</p><p class="refpurpose"><span class="refname">output_reset_rewrite_vars</span> &mdash; <span class="dc-title">重设URL重写器的值（Reset URL rewriter values）</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.output-reset-rewrite-vars-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>output_reset_rewrite_vars</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   此函数重置URL重写器，移除所有的先前由 <span class="function"><a href="function.output-add-rewrite-var.html" class="function">output_add_rewrite_var()</a></span> 
   函数设置的重写变量，或者移除会话机制（如果<em>session.use_trans_sid</em>
   在 <span class="function"><a href="function.session-start.html" class="function">session_start()</a></span>上进行了设置）。
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.output-reset-rewrite-vars-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>， 或者在失败时返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.output-reset-rewrite-vars-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-450">
    <p><strong>Example #1 <span class="function"><strong>output_reset_rewrite_vars()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />session_start</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">output_add_rewrite_var</span><span style="color: #007700">(</span><span style="color: #DD0000">'var'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'value'</span><span style="color: #007700">);<br /><br />echo&nbsp;</span><span style="color: #DD0000">'&lt;a&nbsp;href="file.php"&gt;link&lt;/a&gt;'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">ob_flush</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">output_reset_rewrite_vars</span><span style="color: #007700">();<br />echo&nbsp;</span><span style="color: #DD0000">'&lt;a&nbsp;href="file.php"&gt;link&lt;/a&gt;'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
&lt;a href=&quot;file.php?PHPSESSID=xxx&amp;var=value&quot;&gt;link&lt;/a&gt;
&lt;a href=&quot;file.php&quot;&gt;link&lt;/a&gt;
</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.output-reset-rewrite-vars-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.output-add-rewrite-var.html" class="function" rel="rdfs-seeAlso">output_add_rewrite_var()</a> - 添加URL重写器的值（Add URL rewriter values）</span></li>
    <li class="member"><span class="function"><a href="function.ob-flush.html" class="function" rel="rdfs-seeAlso">ob_flush()</a> - 冲刷出（送出）输出缓冲区中的内容</span></li>
    <li class="member"><span class="function"><a href="function.ob-list-handlers.html" class="function" rel="rdfs-seeAlso">ob_list_handlers()</a> - 列出所有使用中的输出处理程序。</span></li>
    <li class="member"><span class="function"><a href="function.session-start.html" class="function" rel="rdfs-seeAlso">session_start()</a> - Start new or resume existing session</span></li>
   </ul>
  </p>
 </div>
  

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.output-add-rewrite-var.html">output_add_rewrite_var</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.info.html">PHP 选项/信息</a></div>
 <div class="up"><a href="ref.outcontrol.html">Output Control 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
